.TH E1432_FINISH_MEASURE 3 E1432
.SH NAME
e1432_finish_measure \- Clean up the VXI bus after a measurement is done
.IX e1432_finish_measure(3) 3
.SH SYNOPSIS
.cS
SHORTSIZ16 e1432_finish_measure(E1432ID hw, SHORTSIZ16 ID)
.cE
.SH DESCRIPTION

\fIe1432_finish_measure\fR is used to clean up after the end of a
measurement.  It is similar to \fIe1432_reset_measure\fR in that it
stops all inputs and sources, but in addition it also turns off any
signals that modules in the group may be sending onto the VXI bus.

\fIe1432_finish_measure\fR does not disable the channels in the group.
Depending on what your application will be doing next, it is sometimes
a good idea to also call \fIe1432_set_active(hw, ID,
\fBE1432_CHANNEL_OFF\fI)\fR in addition to \fIe1432_finish_measure\fR,
to disable the channels in the group.

This function sets the clock source for each module in the group to
internal (see \fIe1432_set_clock_source\fR); stops each module from
driving the clock or sync/trigger line onto the VXI backplane (see
\fIe1432_set_multi_sync\fR and \fIe1432_set_clock_master\fR); sets the
local bus mode to pipe mode (see \fIe1432_set_lbus_mode\fR and
\fIe1432_reset_lbus\fR); and disables interrupt generation (see
\fIe1432_set_interrupt_mask\fR and
\fIe1432_set_interrupt_priority\fR).

This call stops a previous group measurement from interfering with a
current group measurement if the two groups happen to share TTLTRG
lines for module synchronization.

See \fIe1432_init_measure\fR for a description of multi-module
measurements.

\fIhw\fR must be the result of a successful call to
\fIe1432_assign_channel_numbers\fR, and specifies the group of
hardware to talk to.

\fIID\fR is the ID of a group of channels that was obtained with a
call to \fIe1432_create_channel_group\fR.

.SH "RESET VALUE"
Not applicable.
.SH "RETURN VALUE"
Return 0 if successful, a (negative) error number otherwise.
.SH "SEE ALSO"
.na
e1432_init_measure, e1432_reset_measure
.ad
